//app.js 1
App({
  onLaunch: function () {
    wx.clearStorageSync();
    var that = this;
    //  获取小程序系统配置数据
    wx.request({
      url: that.globalData.httpsurl,
      data: {
        apicode: that.globalData.apicode,
        action: "config",
      },
      method: "GET",
      success: function (res) {
       // console.log(res.data)
        if (res.data.code == 0) {
          wx.setStorageSync('theconfig', res.data.data);
          that.globalData.apiurl=res.data.data.apiurl;
          //that.globalData.is_kouling=res.data.data.is_kouling          
        }
      }
    });
  },

  globalData: {
    userInfo: null,
    apiurl: "https://api.yangtata.com/",
    httpsurl:"https://api.it120.cc/ule/api/transmit/425",
    apicode: "31c1771b039fc89f4132cefdd0ba0f5b",
    pid:"mm_97421589_42812158_361754168",
    is_kouling:2,
  }
})
